﻿Ext.application({
    name: 'Examples.autocomplex',
    paths: {
        'Examples.autocomplex': 'app',
        'Happy': '../../src'
    },
    requires: [
        'Examples.autocomplex.root.metadata.ClassGenerator',
        'Examples.autocomplex.firstleveldetail.metadata.ClassGenerator',
        'Examples.autocomplex.secondleveldetail.metadata.ClassGenerator',
        'Examples.autocomplex.independentdetail.metadata.ClassGenerator'
    ],
    launch: function () {
        Examples.autocomplex.root.metadata.ClassGenerator.generate();
        Examples.autocomplex.firstleveldetail.metadata.ClassGenerator.generate();
        Examples.autocomplex.secondleveldetail.metadata.ClassGenerator.generate();
        Examples.autocomplex.independentdetail.metadata.ClassGenerator.generate();

        Ext.create('Ext.container.Viewport', {
            layout: 'fit',
            items: { xtype: 'root-grid' }
        });
    }
});